package cn.iocoder.yudao.module.im.controller.app.member.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "用户 APP - IM会话新增/修改 Request VO")
@Data
public class AppMemberConversationSaveReqVO {

    @Schema(description = "编号", example = "11067")
    private Long id;

    @Schema(description = "分组ID", example = "9715")
    private Long groupId;

    @Schema(description = "分组类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer groupType;

    @Schema(description = "分组封面")
    private String groupLogo;

    @Schema(description = "会话用户ID", example = "5188")
    private Long byUserId;

    @Schema(description = "会话所属用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19244")
    private Long userId;

    @Schema(description = "最后聊天时间")
    private LocalDateTime lastMessageTime;

    @Schema(description = "最后聊天内容")
    private String lastMessageContent;

    @Schema(description = "最后发送的消息类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Integer lastMessageContentType;

    @Schema(description = "最后发送的消息是否已读", example = "1")
    private String lastMessageReadStatus;

    @Schema(description = "置顶")
    private String pinned;

    @Schema(description = "未读消息数", example = "27068")
    private Integer unreadMessageCount;

}